package top.songxs.gmall.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.songxs.gmall.common.result.Result;

@RestController
@RequestMapping(value = "/order")
@Slf4j
public class TestUserIdThroughtController {

    @GetMapping(value = "/userIdThrought")
    public Result userIdThrought(@RequestHeader("userId") String userId) {
        log.info("userId是"+userId+"通过了验证透传id");
        return Result.ok() ;
    }

}